/********************************************************************
	created:	2009:12:13   11:27:16
	filename: 	custommainsplitwnd.h
	author:		zouyf
	describe:	
*********************************************************************/
#pragma once
#include "customsplitwnd.h"
#include "lyricwindow.h"
#include "../uitls.h"

class FCustomMainSplitWnd : public CHorSplitterWindow
{
public:
	BEGIN_MSG_MAP_EX(FCustomMainSplitWnd)
		MSG_WM_CREATE(OnCreate)
		MSG_WM_SHOWWINDOW(OnShowWindow)
		MESSAGE_HANDLER_EX(WM_USER_SETSONGLISTIDX, DispatchMsg)
		MESSAGE_HANDLER_EX(WM_USER_LYCPLAY, DispatchMsg)
		MESSAGE_HANDLER_EX(WM_USER_LYCUPDATE, DispatchMsg)
		MESSAGE_HANDLER_EX(WM_USER_LYRESETPOS, DispatchMsg)
		CHAIN_MSG_MAP(CHorSplitterWindow)
		//REFLECT_NOTIFICATIONS()
		//DEFAULT_REFLECTION_HANDLER()
	END_MSG_MAP()

	void Init(IApplication *pApp);
	int OnCreate(LPCREATESTRUCT lpCreateStruct);
	void OnShowWindow(BOOL bShow, UINT nStatus);
	LRESULT DispatchMsg(UINT uMsg, WPARAM wParam, LPARAM lParam);

private:
	FLyricWindow	m_LyricWnd;
	FCustomSplitWnd	m_SplitWnd;
	IApplication    *m_pApp;
};
